package com.tangyuan.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.User;
import com.tangyuan.model.UserLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: user
 * @Author: jeecg-boot
 * @Date:   2024-03-13
 * @Version: V1.0
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    Integer setUserById(String key, Object value, Long id);

    List<User> selectMayKnowAndUnconcern(List<String> mobile, Long userId);

    UserLike getUserLikeByUserId(@Param("userId") Long userId);

    void deleteByVideoId(Long videoId);

    void deleteUserVideoCollectionByVideoId(@Param("videoId") Long videoId);

    void deleteUserActionByVideoId(@Param("videoId") Long videoId);
}
